<?php
  $country = ["zh", "en", "yue", "jp", "kor", "fra", "spa", "th", "ara", "ru", "pt", "de", "it", "el", "nl", "pl", "bul", "est", "dan", "fin", "cs", "rom", "slo", "swe", "hu", "cht", "vie"];
  $hostname = $_SERVER['HTTP_HOST'];
  $subdomain = explode('.', $hostname)[0];
  $language = 'en';
  if (in_array($subdomain, $country)) {
      $language = $subdomain;
  }
  ?>
  <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>{usu_fanyi($seo_title, $language)}</title>
    <meta content="{usu_fanyi($meta_keywords, $language)}" name="keywords" />
    <meta content="{usu_fanyi($seo_des, $language)}" name="description" />
    <script type="text/javascript">
        var is_mobile_cms = '{IS_MOBILE}';
        var web_dir = '{WEB_DIR}';
    </script>
    <script src="{LANG_PATH}lang.js" type="text/javascript"></script>
    <script src="{THEME_PATH}assets/global/plugins/jquery.min.js" type="text/javascript"></script>
    <script src="{THEME_PATH}assets/js/cms.js" type="text/javascript"></script>
    {SITE_TONGJI}
    <link href="{SITE_LOGO}" rel="shortcut icon" type="image/x-icon">
    <meta name="viewport" content="width=1280">
    <link href="{HOME_THEME_PATH}css/aos.css" rel="stylesheet">
    <link href="{HOME_THEME_PATH}css/style.css" rel="stylesheet">
    <link href="{HOME_THEME_PATH}css/common.css" rel="stylesheet">
    <script src="{HOME_THEME_PATH}js/jquery.js"></script>
    <script src="{HOME_THEME_PATH}js/jquery.superslide.2.1.1.js"></script>
    <script src="{HOME_THEME_PATH}js/common.js"></script>
    <script src="{HOME_THEME_PATH}js/jquery.jcarousellite.min.js"></script>
    <meta http-equiv="mobile-agent" content="format=xhtml;url=/17571/m">
    <script type="text/javascript">
        if (window.location.toString().indexOf('pref=padindex') != -1) {} else {
            if (/applewebkit.*mobile/i.test(navigator.userAgent.toLowerCase()) || (
                    /midp|symbianos|nokia|samsung|lg|nec|tcl|alcatel|bird|dbtel|dopod|philips|haier|lenovo|mot-|nokia|sonyericsson|sie-|amoi|zte/
                    .test(navigator.userAgent.toLowerCase()))) {
                try {
                    if (/android|windows phone|webos|iphone|ipod|blackberry/i.test(navigator.userAgent.toLowerCase())) {
                        window.location.href = "/17571/m";
                    } else if (/ipad/i.test(navigator.userAgent.toLowerCase())) {} else {}
                } catch (e) {}
            }
        }
    </script>
</head>
